package ru.nagakhl.whirlpool;

import java.util.List;

import org.apache.cassandra.thrift.Cassandra;

public interface Connection {
	
	public <T> T get(Class<T> cls, Object id);
	
	public <T> List<T> getAll(Class<T> cls);
	
	public void save(Object element);
	
	public void merge(Object element);
	
	public void delete(Object id);
	
	public void flush();
	
	public void close();
	
	public Cassandra.Client getClient();
	
}
